package cn.com.cifi.mars.constant;

/**
 * @Author: ztz
 * @Date: 2020/11/9 15:48
 * 标准业态
 */
public enum StandardFormatsEnum {
    BUSINESS_VILLA("104", "商墅"),
    HOTEL("135", "酒店"),
    LOFT("044", "LOFT"),
    PARKING_SPACE("139", "车位"),
    SOHO("100", "酒店式公寓"),
    SINGLE_FAMILY_OFFICE("108", "独栋办公"),
    STANDARD_OFFICE("059", "标准办公"),
    UNDERGROUND_STORAGE_ROOM_NON_MOTORIZED_GARAGE("146", "地下储藏室/非机动车库"),
    ANCILLARY_FACILITY("132", "配套"),
    BUSINESS("053", "商业"),
    OTHER("089", "其他"),
    RESIDENTIAL("013", "住宅");

    private String key;
    private String value;

    StandardFormatsEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }


    public static String getValueByKey(String key){
        for(StandardFormatsEnum e:StandardFormatsEnum.values()){
            if(key.equals(e.getKey())){
                return e.getValue();
            }
        }
        return  null;
    }
}
